package com.dm.cloud.images.controller.defalut;

import com.dm.cloud.oauthlib.service.anon.HasLogin;
import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.tkmybatis.service.EntityBaseController;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.dm.cloud.images.common.po.ImagesTemp;
import com.dm.cloud.images.common.dto.ImagesTempDTO;
import com.dm.cloud.images.common.request.ImagesTempSearchRequest;
import com.dm.cloud.images.service.ImagesTempService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
   * @author hcx
   * @type ImagesTempController.java
   * @desc 镜像创建模板 ImagesTemp controller
   */
@RestController
@RequestMapping("/apis/v1/imagesTemp")
@Tag(name =  "镜像创建模板  ImagesTempcontroller")
@HasLogin
public class ImagesTempController extends EntityBaseController<ImagesTempSearchRequest, ImagesTemp, ImagesTempDTO> {


    @Autowired
    private ImagesTempService imagesTempService;
    @Override
    public ImagesTemp getEntity() {
        return new ImagesTemp();
    }

    @Override
    public ImagesTempDTO getDTO() {
        return new ImagesTempDTO();
    }
    @Override
    public BaseEntityService<ImagesTempSearchRequest, ImagesTemp> getService() {
        return imagesTempService;
    }


}
